package com.bxait.toymail.auth.server.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/*
@description: 视图跳转
@ClassName ToyMailWebConfig
@author Chen
@create 2023-04-20 17:29
@Version 1.0
*/
@Configuration
public class ToyMailWebConfig implements WebMvcConfigurer {

    /*
     * @param registry
     * @==============History===============<br/>
     * @Description //   配置springMvc的路径映射
     * @Date 2023/4/20 2023/4/20
     * @Author < a href="2277411582@qq.com">chen</ a>
     * @return
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        // 返回注册页
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
